#include <thread>
#include <chrono>

#include <MqttManager.hpp>

/* 支持 h s ms 等字面量的重载 */
using namespace std::chrono_literals;

int main(int argc, char** argv) {
	std::string rootPath{""};
	std::string configPath{"/home/chint/sys/sys_manager/file/config.yaml"};
	if (argc <= 1) {
		rootPath = "/home/chint/cloud/cloud_chint/";
	} else if (argc == 2){
		rootPath = argv[1];
	} else {

	}

	MqttManager manager(configPath);
	while (true) {
		std::this_thread::sleep_for(5s);
	}
	return 0;
}
